import 'dart:async';

import 'package:flutter/services.dart';

class FlutterKstPlugin {
  static const MethodChannel _channel =
      const MethodChannel('flutter_kst_plugin');

  static Future<String?> get platformVersion async {
    final String? version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<String?> initKST(String key, String compId) async {
    final String? result = await _channel.invokeMethod('initKST', <String,dynamic>{'key':key,'compId':compId});
    return result;
  }

  static Future openKST() async {
    await _channel.invokeMethod('openKST');
  }

  static Future closeKST() async {
    await _channel.invokeMethod('closeKST');
  }
}
